package com.webchat.ugc.event;

import com.webchat.ugc.event.enums.GeneralEventTypeEnum;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

@Getter
public class MallChatGeneralEvent<T> extends ApplicationEvent {

    private GeneralEventTypeEnum eventType;

    /**
     * 事件数据
     */
    private T eventData;


    public MallChatGeneralEvent(Object source,
                                GeneralEventTypeEnum eventType,
                                T eventData) {
        super(source);
        this.eventType = eventType;
        this.eventData = eventData;
    }
}
